#include<bits/stdc++.h>
using namespace std;
string a, b;
vector<int> ia, ib;
int main() {
    cin>>a>>b;
    for(int i=a.size()-1; i>=0; --i) ia.push_back(a[i]-'0');
    for(int i=b.size()-1; i>=0; --i) ib.push_back(b[i]-'0');
    
    if(ia.size() < ib.size()) swap(ia, ib);
    vector<int> C;
    int t = 0;
    for(int i=0; i<ia.size(); ++i) {
        t += ia[i];
        if(i<ib.size()) t+=ib[i];
        C.push_back(t%10);
        t /= 10;
    }
    if(t) C.push_back(t);
    for(auto it=C.rbegin(), ed=C.rend(); it!=ed;++it) cout<<*it;
    cout<<endl;
}
